#pragma once

#include "Includes.h"
#include "Constants.h"
#include "CUserCmd.h"
#include "Utilities.h"
#include "Entity.h"
#include "CTraceFilterSkipTwoEntities.h"
#include "GameUtilities.h"
#include "Trace.h"
#include "Player_Info.h"
#include "Ray.h"

class EasyTrigger
{
public:
	bool Active;
	bool HeadOnly;
	bool PredictRecoil;
private:
	bool DoTrigger(CUserCmd* Cmd);
public:
	void Init();
	void Enable();
	void Disable();
	void Set(bool Active);
	void SetHeadOnly(bool Active);
	void Compute(CUserCmd* Cmd);
};

extern EasyTrigger g_pEasyTrigger;
